package com.yc.fruitmarket.biz;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface orderBiz {
	public int waitPay(String uid, String cids, String countMenoys, String num, String aid, String did);
	
	/**
	 * 获取季度
	 * @param year
	 * @return
	 */
	public List<Map<String, String>> getjd(String year);
	
	/**
	 * 获取5年销售额
	 * @return
	 */
	public List<Map<String, String>> getyear();
	
	/**
	 * 获取今年月份
	 * @return
	 */
	public List<Map<String, String>> getmonth(String year);
	
	/**
	 * 获取数据
	 * @return
	 */
	public String getdataL();
	
	/**
	 * 退款
	 * @param oid
	 * @return
	 */
	public int refund(String oid);
	
	/**
	 * 
	 * @return
	 */
	public List<Map<String, String>> openL(String oid);
	
	/**
	 * 获取本周营业额
	 * @return
	 */
	public List<Map<String, String>> getweekordernum();
	
	/**
	 * 获取所有订单状态数量
	 * @return
	 */
	public List<Map<String, String>> getordernumL();
	
	/**
	 * 统计今日订单量
	 * @return
	 */
	public int sumorder();
	
	/**
	 * 已完成订单
	 * @return
	 */
	public List<Map<String,String>> overorderL();
	
	/**
	 * 取消订单
	 * @param oid
	 * @return
	 */
	public int removebyoidL(String oid);

	public int pay(String oid,String uid,String countmoneys);

	/**
	 * 发货
	 * @param oid
	 * @return
	 */
	public int shipments(String oid);
	
	/**
	 * 获取商品
	 * @param oid
	 * @return
	 */
	public List<Map<String, String>> ordershowproductL(String oid);
	
	/**
	 * 分页
	 * @param oid
	 * @param uname
	 * @param pname
	 * @param status
	 * @param pagenum
	 * @return
	 */
	public List<Map<String, String>> pageL(String oid, String uname, String pname, String status, int pagenum, String start, String end);
	
	/**
	 * 获取订单信息
	 * @return
	 */
	public List<Map<String, String>> getordersL(String status);
	
	/**
	 * 条件查询
	 * @param status
	 * @param oid
	 * @param uname
	 * @param pname
	 * @return
	 */
	public List<Map<String, String>> byselect(String status, String oid, String uname, String pname);
	
	
	public List<Map<String, String>> findOrder(String uid, String status);
	
	public List<Map<String, String>> findDetailOrder(String uid, String oid, String status);
	//确认收货地址
	public int toRecv(String oid);
	
	public List<Map<String,String>> showOrder(String oid);
	
	//用户可退货
	public int toTuiHuo(String oid,String uid,String reason);
	
	public int updatebalance(String oid, String uid,String countmoneys);
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	

}
